<?php
    if(!isset($showitem) && isset($_GET['showitem']))
        $showitem = $_GET['showitem'];

    if($showitem == 'register') $sidemenuitemregisterclass = 'selected';
    elseif($showitem == 'aboutushistory') $sidemenuitemaboutusclass = 'selected';
    elseif($showitem == 'blog') $sidemenuitemblogclass = 'selected';
?>
<ul id="sidemenucontent">
    <?php /* Conditional menu items */ ?>
    <?php if($user->role == 'admin'): ?>
        <li>
            <a href="#"><?php echo $sidemenuitemadmin; ?></a>
        </li>
    <?php elseif($user->role == 'couple'): ?>
        <li>
            <a href="couple.php"><?php echo $sidemenuitemcouple; ?></a>
        </li>
    <?php elseif($user->role == 'guest'): ?>
        <li>
            <a href="#"><?php echo $sidemenuitemguest; ?></a>
        </li>    
    <?php endif; ?>
    <?php if($user->role != 'couple'): ?>
        <li>
            <a class="<?php echo $sidemenuitemregisterclass; ?>" href="?showitem=register&lastshowitem=<?php $showitem?>">
                <?php echo $sidemenuitemregister; ?>
            </a>
        </li>
    <?php endif; ?>
    <li>
        <a href="#"><?php echo $sidemenuitemcouples; ?></a>
    </li>
    <li>
        <a class="<?php echo $sidemenuitemaboutusclass; ?>" href="#">
            <?php echo $sidemenuitemaboutus; ?>
        </a>
        <ul>
            <li>
                <a href="?showitem=aboutushistory"><?php echo $sidemenuitemaboutushistory; ?></a>
            </li>
        </ul>
    </li>
    <li>
        <a href="#"><?php echo $sidemenuitempackages; ?></a>
    </li>
    <li>
        <a class="<?php echo $sidemenuitemblogclass; ?>" href="?showitem=blog">
            <?php echo $sidemenuitemblog; ?>
        </a>
    </li>
    <li>
        <a href="#"><?php echo $sidemenuitemlinks; ?></a>
        <ul>
            <li>
                <a href="#"><?php echo $sidemenuitemlinksplanners; ?></a>
                <ul>
                    <li><a href="http://www.heiraten.ch" target="_BLANK">Heiraten.ch</a></li>
                    <li><a href="http://www.wirheiraten.ch" target="_BLANK">Wirheiraten.ch</a></li>
                    <li><a href="http://www.swisswedding.ch" target="_BLANK">Swisswedding.ch</a></li>
                    <li><a href="http://www.123gold.ch" target="_BLANK">123gold.ch</a></li>
                    <li><a href="http://www.wedding-events.ch" target="_BLANK">Wedding-events.ch</a></li>
                    <li><a href="http://www.mywedding.com" target="_BLANK">Mywedding.com</a></li>
                    <li><a href="http://www.wedding-angel.ch" target="_BLANK">Wedding-angel.ch</a></li>
                    <li><a href="http://www.wedding-alacarte.com" target="_BLANK">Wedding-alacarte.com</a></li>
                    <li><a href="http://www.exclusive-wedding.com" target="_BLANK">Exclusive-wedding.com</a></li>
                </ul>
            </li>
            <li>
                <a href="#"><?php echo $sidemenuitemlinksfashionhouses; ?></a>
                <ul>
                    <li><a href="http://www.merys.com" target="_BLANK">Merys.com</a></li>
                    <li><a href="http://www.hochzeitskleideronline.de" target="_BLANK">Hochzeitskleideronline.de</a></li>
                    <li><a href="http://www.samyra-fashion.com" target="_BLANK">Samyra-fashion.com</a></li>
                    <li><a href="http://www.lapassion.ch" target="_BLANK">Lapassion.ch</a></li>
                    <li><a href="http://www.hochzeits-traeume.ch" target="_BLANK">Hochzeits-traeume.ch</a></li>
                    <li><a href="http://www.meistercouture.ch" target="_BLANK">Meistercouture.ch</a></li>
                    <li><a href="http://www.brautperle.ch" target="_BLANK">Brautperle.ch</a></li>
                </ul>
            </li>
            <li>
                <a href="#"><?php echo $sidemenuitemlinksjewelers; ?></a>
                <ul>
                    <li><a href="http://www.123gold.ch" target="_BLANK">123gold.ch</a></li>
                    <li><a href="http://www.rhomberg.ch" target="_BLANK">Rhomberg.ch</a></li>
                </ul>
            </li>
            <li>
                <a href="#"><?php echo $sidemenuitemlinksphotographers; ?></a>
            </li>
            <li>
                <a href="#"><?php echo $sidemenuitemlinkscatering; ?></a>
            </li>
            <li>
                <a href="#"><?php echo $sidemenuitemlinkslivemusic; ?></a>
            </li>
        </ul>
    </li>
</ul>
